'use strict';
requirejs.config({
    map: {
        '*': {'css':'require/css'}
    },
    paths:{
        //第三方js
        requireCss:'../plugins/require-css/css.min',
        jquery:'//cdn.bootcss.com/jquery/2.2.1/jquery.min',
        angular:"//cdn.bootcss.com/angular.js/1.5.0/angular.min",
        angularResource: "//cdn.bootcss.com/angular.js/1.5.0/angular-resource.min",
        angularSanitize:"//cdn.bootcss.com/angular.js/1.5.0/angular-sanitize.min",
        angularRoute:"//cdn.bootcss.com/angular.js/1.5.0/angular-route.min",
        angularLoading:"//cdn.bootcss.com/angular-loading-bar/0.9.0/loading-bar.min",
        bootstrap:"../plugins/bootstrap/js/bootstrap.min",
        fileSaver:"//cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver.min",
        bootstrapDateTimePicker:"../plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min",
        bootstrapDateTimePickerCN:"../plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN",
        grumble:"../plugins/grumble/js/jquery.grumble.min",
        zepto:"../plugins/icheck/zepto",
        iCheck:"../plugins/icheck/icheck.min",
        common:"./service/commonService",
        dependency:"./service/dependencyResolverFor",
        filters:"./service/filters"
    },
    shim:{
        jquery: { exports: '$' },
        grumble:{
            deps:[
                'requireCss',
                'jquery',
                'css!../plugins/grumble/css/grumble.css'
            ]
        },
        iCheck:{
            deps:[
                'requireCss',
                'jquery',
                'zepto',
                'css!../plugins/icheck/skins/flat/_all.css'
            ]
        },
        angular: { exports: 'angular',deps:['jquery']},
        angularResource: ['angular'],
        angularSanitize:['angular'],
        angularRoute:['angular'],
        angularLoading:['angular'],
        bootstrap:['jquery'],
        bootstrapDateTimePicker:['bootstrap'],
        bootstrapDateTimePickerCN:['bootstrapDateTimePicker']

    }
});


require(['angular',
        'main',
        'filters',
        './controller/indexCtrl'
    ],function(angular){
        angular.bootstrap($(document), ['mainApp']);
    }
);

